/*
 * @Description: 
 * @version: 
 * @Author: 171
 * @Date: 2022-09-21 18:04:45
 * @LastEditors: 171
 * @LastEditTime: 2022-09-22 12:13:30
 */
import { createHash } from 'crypto';



function getMD5(plaintext: string): string{
  const md5 = createHash('md5');
  const result = md5.update(plaintext).digest('hex');
  return result;
}

export default getMD5;